//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.purvar.boot.api.pojo;

import com.purvar.boot.api.entity.SysAutocodeDetail;
import com.purvar.boot.api.entity.SysAutocodeMain;

import java.util.ArrayList;
import java.util.List;

public class SysAutoCodeMainAndDetails {
    private SysAutocodeMain sysAutocodeMain;
    private List<SysAutocodeDetail> sysAutocodeDetails = new ArrayList();

    public SysAutoCodeMainAndDetails() {
    }

    public SysAutocodeMain getSysAutocodeMain() {
        return this.sysAutocodeMain;
    }

    public List<SysAutocodeDetail> getSysAutocodeDetails() {
        return this.sysAutocodeDetails;
    }

    public void setSysAutocodeMain(final SysAutocodeMain sysAutocodeMain) {
        this.sysAutocodeMain = sysAutocodeMain;
    }

    public void setSysAutocodeDetails(final List<SysAutocodeDetail> sysAutocodeDetails) {
        this.sysAutocodeDetails = sysAutocodeDetails;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SysAutoCodeMainAndDetails)) {
            return false;
        } else {
            SysAutoCodeMainAndDetails other = (SysAutoCodeMainAndDetails) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$sysAutocodeMain = this.getSysAutocodeMain();
                Object other$sysAutocodeMain = other.getSysAutocodeMain();
                if (this$sysAutocodeMain == null) {
                    if (other$sysAutocodeMain != null) {
                        return false;
                    }
                } else if (!this$sysAutocodeMain.equals(other$sysAutocodeMain)) {
                    return false;
                }

                Object this$sysAutocodeDetails = this.getSysAutocodeDetails();
                Object other$sysAutocodeDetails = other.getSysAutocodeDetails();
                if (this$sysAutocodeDetails == null) {
                    if (other$sysAutocodeDetails != null) {
                        return false;
                    }
                } else if (!this$sysAutocodeDetails.equals(other$sysAutocodeDetails)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof SysAutoCodeMainAndDetails;
    }


    public String toString() {
        return "SysAutoCodeMainAndDetails(sysAutocodeMain=" + this.getSysAutocodeMain() + ", sysAutocodeDetails=" + this.getSysAutocodeDetails() + ")";
    }
}
